from dataaccess import CommitteeData
from common import utility


class CommitteeBiz(object):
    def __init__(self):
        pass

    def __ValidateInsert(self, committee):
        valid = True
        if not valid:
            raise utility.BusinessException(message="",fieldName = "")
        
    def __ValidateUpdate(self, committee):
        valid = True
        if not valid:
            raise utility.BusinessException(message="",fieldName = "")
        
    def __ValidateDelete(self, name):
        valid = True
        if not valid:
            raise utility.BusinessException(message="",fieldName = "")
        
    def InsertCommittee(self, committee):
        self.__ValidateInsert(committee)
        committeeData = CommitteeData.CommitteeData()
        committeeData.InsertCommittee(committee)

    def UpdateCommittee(self, committee):
        self.__ValidateUpdate(committee)
        committeeData = CommitteeData.CommitteeData()
        committeeData.UpdateCommittee(committee)

    def DeleteCommittee(self, name):
        self.__ValidateDelete(committee)
        committeeData = CommitteeData.CommitteeData()
        committeeData.DeleteCommittee(name)
